package strategy;

/**
 * 封装策略，统一对外出口，
 */
public class StrategyContext {

    private IStrategy iStrategy;

    public StrategyContext(IStrategy iStrategy){
        this.iStrategy = iStrategy;
    }

    public void ruleExecute(){
        this.iStrategy.rule();
    }
}
